package com.eduhzy.ttw.commonsdk.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author xubo
 * @date 2018/8/1 8:58
 */
public class CourseListData implements Parcelable {

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    /**
     * internalId : 909
     * total : 13
     * playInfo :
     * price :
     * mediaType : 3
     * title : 图形与位置课堂教学的探讨
     * mediaName : 视频
     */

    private int parentId;
    private int internalId;
    private int total;
    private String playInfo;
    private String price;
    private int mediaType;
    private String title;
    private String mediaName;

    public int getInternalId() {
        return internalId;
    }

    public void setInternalId(int internalId) {
        this.internalId = internalId;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public String getPlayInfo() {
        return playInfo;
    }

    public void setPlayInfo(String playInfo) {
        this.playInfo = playInfo;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public int getMediaType() {
        return mediaType;
    }

    public void setMediaType(int mediaType) {
        this.mediaType = mediaType;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMediaName() {
        return mediaName;
    }

    public void setMediaName(String mediaName) {
        this.mediaName = mediaName;
    }

    public CourseListData() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.parentId);
        dest.writeInt(this.internalId);
        dest.writeInt(this.total);
        dest.writeString(this.playInfo);
        dest.writeString(this.price);
        dest.writeInt(this.mediaType);
        dest.writeString(this.title);
        dest.writeString(this.mediaName);
    }

    protected CourseListData(Parcel in) {
        this.parentId = in.readInt();
        this.internalId = in.readInt();
        this.total = in.readInt();
        this.playInfo = in.readString();
        this.price = in.readString();
        this.mediaType = in.readInt();
        this.title = in.readString();
        this.mediaName = in.readString();
    }

    public static final Creator<CourseListData> CREATOR = new Creator<CourseListData>() {
        @Override
        public CourseListData createFromParcel(Parcel source) {
            return new CourseListData(source);
        }

        @Override
        public CourseListData[] newArray(int size) {
            return new CourseListData[size];
        }
    };
}
